<template>
  <el-card class="box-card">
    <template #header>
      <div class="card-header">
        <span>角色管理</span>
        <el-button class="button" :icon="Plus" text>添加角色</el-button>
      </div>
    </template>
    <RoleListTable></RoleListTable>
    <SysTreeDrawer></SysTreeDrawer>
  </el-card>
</template>

<script setup>
import { Plus, Delete, Edit, Message, Search, Star } from '@element-plus/icons-vue'

import RoleListTable from './RoleListTable.vue'

import SysTreeDrawer from './SysTreeDrawer.vue'
</script>

<style lang="scss" scoped>
.el-card__header {
  border-bottom: 1px solid $main-color;
  padding: 0.25rem 1rem;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .el-button {
    color: $main-color;
    border-radius: 0.5rem;
  }
}
</style>
